package com.situ.shoplook.common.service;

import com.situ.shoplook.common.model.Category;

import java.util.List;

public interface CategoryService {
    List<Category> findAll();

    /**
     * 返回类别树
     *
     * @return 根节点
     */
    Category findTree();

    Category findById(Integer id);

    boolean save(Category category);

    boolean update(Category category);

    int deleteByIds(Integer[] ids);

    Category findByName(String name);
    Category findByParentId(Integer id);

    List<Integer> findChildren(Integer id);
}
